Skip to content

Fix immutable Set bug in ArchiveEntry factory method#2

Merged
abedurftig merged 1 commit intomainfrom
bug/smartfiles-412-fix-immutable-set
Jan 16, 2026
Merged

Fix immutable Set bug in ArchiveEntry factory method#2
abedurftig merged 1 commit intomainfrom
bug/smartfiles-412-fix-immutable-set

Conversation

@abedurftig
Copy link
Owner

Summary

  • Changed Set.of() to new HashSet<>() in ArchiveEntry.of() factory method
  • This allows tags to be added after ArchiveEntry creation without throwing UnsupportedOperationException

Issue

Fixes smartfiles-412

Test plan

  • All 51 existing tests pass

🤖 Generated with Claude Code

Changed Set.of() to new HashSet<>() to allow tags to be added
after ArchiveEntry creation.

Fixes: smartfiles-412

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@abedurftig
Copy link
Owner Author

Can be merged.

@abedurftig abedurftig merged commit 8fe2b5b into main Jan 16, 2026
1 check passed
@abedurftig abedurftig deleted the bug/smartfiles-412-fix-immutable-set branch January 16, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants